package com.self.match.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import sun.misc.Cache;

import java.util.Map;

/**
 * @version v1.0
 * @ClassName: MatchEngineProperties
 * @Description:
 * @Author: Mac
 */
@Data
@ConfigurationProperties(prefix = "engine.match")
public class MatchEngineProperties {

    private Map<String,CoinScale> symbols;

    @Data
    public static class CoinScale{
        /**
         * 交易币种的精度
         */
        private int coinScale;

        /**
         * 基币的精度
         */
        private int baseCoinScale;
    }
}
